<?php

namespace App\Model;

class OrdersModel extends BaseModel{

    protected $table = 'orders';

    const STATUS_1 = 1;
    const STATUS_2 = 2;

    const STATUS_TEXT = [
        self::STATUS_1 => '<span class="el-tag">已支付</span>',
        self::STATUS_2 => '<span class="el-tag el-tag--danger">未支付</span>',
    ];

    protected $fillable = [
        'id','title','order_sn','money','openid','shopid','foodid','status','created_at','pay_at'
    ];



}
